<include file="__THEME__/public_header" />
<div id="page-wrap">
    <div id="main-wrap">
        <div class="profile-title  boxShadow">
                <include file="_top"/> 
                <!--<div class="app-tab-menu clearfix">
                                                      
                    <dl>
                        <dt><a href="{:U('public/Profile/index',array('type'=>$type,'feed_type'=>'','uid'=>$uid))}" class="current">微博</a><a href="{:U('public/Profile/data',array('uid'=>$uid))}">资料</a></dt>
                    </dl>
                </div>-->
        </div>
        <div id="col" class="st-grid boxShadow content-bg minh">
            <php>if($userPrivacy['space'] != 1){</php>
            <include file="_sidebar"/>

                <div id="col5" class="st-index-main">
                <div class="extend minh">
                    <!--feed list-->
                    <div class="feed_lists">
                        <!--feed list-->
                        <dl class="feed_list feed_list_hover detail">
                            <dd class="content" id="feed{$feedInfo.feed_id}">
                                
                                <p class="clearfix">
                                    <span event-node="show_admin" event-args="feed_id={$feedInfo['feed_id']}&uid={$feedInfo['uid']}&feed_del={:CheckPermission('core_admin','feed_del')}&channel_recommend={:CheckPermission('channel_admin','channel_recommend')}&isrefresh=1" href="javascript:;" class="right f12 hover f9" style="display:none;cursor:pointer">管理</span>
                                {$feedInfo.body|format=true}
                                </p>
                                <p class="info">
                                <span class="right">
                                    <php>$cancomment_old = empty($feedInfo['app_row_id'])  ? 0 : 1;</php>
                                    <php>$cancomment = intval(CheckPermission('core_normal','feed_comment'));</php>
                                    <eq name='feedInfo.actions.repost' value='true'>
                                        <php>if(CheckPermission('core_normal','feed_share') && in_array('repost',$weibo_premission)){</php>
                                              <php>$sid = !empty($feedInfo['app_row_id'])? $feedInfo['app_row_id'] : $feedInfo['feed_id'];</php>
                                                {:W('Share',array('sid'=>$sid,'stable'=>$feedInfo['app_row_table'],'initHTML'=>'','current_table'=>'feed','current_id'=>$feedInfo['feed_id'],'nums'=>$feedInfo['repost_count'],'appname'=>$feedInfo['app'],'cancomment'=>$cancomment,'feed_type'=>$feedInfo['type'],'is_repost'=>$feedInfo['is_repost']))}
                                                <i class="vline">|</i>
                                        <php>}</php>
                                    </eq>
                                    <eq name='feedInfo.actions.favor' value='true'>
                                        {:W('Collection',array('type'=>'btn','sid'=>$feedInfo['feed_id'],'stable'=>'feed','sapp'=>$feedInfo['app']))}
                                    </eq>
                                    <php>if(in_array('comment',$weibo_premission)):</php>
                                    <i class="vline">|</i>  
                                    <a href="javascript:void(0)">{:L('PUBLIC_STREAM_COMMENT')}
                                    <neq name='feedInfo.comment_count' value='0'>({$feedInfo['comment_count']})</neq></a>
                                    <php> endif; </php>
                                </span>
                            <a class="date" href="javascript:;">{$feedInfo.publish_time|friendlyDate}</a>
                            <span>{$feedInfo['from']}</span>
                            <em class="hover">
                            <php>if($feedInfo['uid'] != $GLOBALS['ts']['mid']){</php>
                            <php>if(CheckPermission('core_normal','feed_report')){</php>
                            <a href="javascript:void(0)" event-node='denounce' event-args='aid={$feedInfo.feed_id}&type=feed&uid={$feedInfo.uid}'>{:L('PUBLIC_STREAM_REPORT')}</a>
                            <php>}</php>
                            <php>}</php>
                            <i class="vline"></i>
                            <eq name='feedInfo.actions.delete' value='true'>
                            <!-- 做普通删除权限 和 管理删除权限 判断 & 只有微博可以被删除  -->
                            <php>if(($feedInfo['uid'] == $GLOBALS['ts']['mid']) ) {</php>
                            <a href="javascript:void(0)" event-node ='delFeed' event-args='feed_id={$feedInfo.feed_id}&uid={$feedInfo.uid}&isrefresh=1'>{:L('PUBLIC_STREAM_DELETE')}</a>
                            <php>}</php>
                            </eq>
                            </em>
                              </p>
                              <p class="border">
                                	<!--<i class="arrow arrow-t"></i>-->
                              </p>
                            </dd>
                        </dl>
                    </div>
                    <!--feed list-->

					<div  class="feed_lists">
						<dl class="feed_list feed_comment">
							<dd class="content">
                                <div class="repeat clearfix pading">
                                    <php> $cancomment = CheckPermission('core_normal','feed_comment') && in_array('comment',$weibo_premission) ? 1: 0;</php>
                        {:W('Comment',array('tpl'=>'detail','app_row_id'=>$feedInfo['app_row_id'],'app_uid'=>$feedInfo['uid'],'row_id'=>$feedInfo['feed_id'],'pageHtml'=>1,'limit'=>'20','order'=>'DESC','cancomment'=>$cancomment,'cancomment_old'=>0,'app_name'=>$feedInfo['app']))}                                   
                                </div>
							</dd>
						</dl>
					</div>
                    </div>
                 </div>
            <php>}else{</php>
                   <p class="extend"> -_-。sorry！根据对方隐私设置，您无权查看TA的微博</p>
            <php>}</php>
        </div>
    </div>
</div>
<include file="__THEME__/public_footer" />
<script src="__THEME__/js/module.weibo.js"></script>